// Compute the roots of a quadratic equation.
#include <iostream>
#include <cmath>

#include "declarations.hpp"

// The coefficients
double a, b, c;

int main()
{
  // Get the coefficients of the quadratic equation:
  std::cout << "Enter a, b, and c:\n";
  std::cin >> a >> b >> c;
  
  // Check to make sure the roots are real:
  if((b*b - 4*a*c) < 0) {
    std::cout << "ERROR: Roots are not real!\n";
    return 1;
  }
  
  std::cout << "The roots are: " 
	    << root_minus() << "  " << root_plus() << std::endl;
  return 0;
}
